package com.eascs.admin.o2o.detail.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eascs.admin.common.service.BaseSevice;
import com.eascs.admin.o2o.detail.dao.DataCenterDao;
import com.eascs.admin.o2o.detail.dao.OaDetailDao;
/**
 * 旧系统 主表service
 * @author ycz
 *
 */
import com.eascs.admin.o2o.detail.entity.OaLoanDetailEntity;
import com.eascs.admin.o2o.detail.entity.OaPay;
import com.eascs.admin.o2o.detail.entity.OaUnit;
import com.eascs.app.dao.PageResult;
/*
 * 老系统详情查询
 */
@Service
public class OaLoanapplyDetailService  extends BaseSevice{
	@Autowired
	private OaDetailDao oaDetailDao;
	@Autowired
	private DataCenterDao dataCenterDao;

	/**
	 * 查询基础资料
	 * @param billCode
	 * @return
	 */
	public OaLoanDetailEntity queryBasic(String billCode){
		return oaDetailDao.queryBillCode(billCode);
	}
	/**
	 * 逾期信息
	 * @return
	 */
	public PageResult<Object[]> queryOverDue(String billCode){
		return dataCenterDao.queryOverdue(billCode);
	}
	/**
	 * 代偿信息
	 * @param billCode
	 * @return
	 */
	public OaPay queryOaPay(String billCode){
		return dataCenterDao.queryOaPay(billCode);
	}
	/**
	 * 银行申报统计逾期信息
	 * @param billCodes
	 * @return
	 */
	public PageResult<Object[]> queryOverList(List<Object> billCodes){
		return dataCenterDao.queryOverduelist(billCodes);
	}
	/**
	 * 回购担保方 ID
	 * @param unitNo
	 * @return
	 */
	public OaUnit findUnit(String unitNo){
		return oaDetailDao.findUnit(unitNo);
	}
	/**
	 * 联想回购担保方
	 * @param unitNo
	 * @return
	 */
	public List<Object[]> findOAUnit(String name){
		return oaDetailDao.findOAUnit(name);
	}
}
